package com.qzdsoft.utils.constant;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.qzdsoft.utils.SysUtils;
import com.qzdsoft.utils.common.CommonStatusEnum;
import com.qzdsoft.utils.enums.CommonStatus2Enum;
import com.qzdsoft.vo.EnumPo;

/**
 * Created by Yang
 */
public class SystemConstant {

    public static Integer companyIdGg = 0;

    public static String cxdlKey = "cxdl";

    public static String cxdlKeyGq = "1";           //  过期

    public static String cxdlKeyYddl = "2";         //  异地登录

    public static String idKey = "id";

    public static String editFlagKey = "editflag";

    /**
     * 公共状态
     */
    public static final List<EnumPo> commonStatusList = new ArrayList<EnumPo>();

    public static final Map<Object, Object> commonStatusMap = new HashMap<Object, Object>();

    public static final List<EnumPo> commonStatus2List = new ArrayList<EnumPo>();

    public static final Map<Object, Object> commonStatus2Map = new HashMap<Object, Object>();

    static {
        for(CommonStatusEnum e : CommonStatusEnum.values()){
            SysUtils.enums(commonStatusList, commonStatusMap, e.getKey(), e.getVal());
        }

        for(CommonStatus2Enum e : CommonStatus2Enum.values()){
            SysUtils.enums(commonStatus2List, commonStatus2Map, e.getKey(), e.getVal());
        }
    }

}
